home *** CD-ROM | disk | FTP | other *** search
/ Interactive Quarterly / The Best of New Machine Publishing 1 - Disc 4: Interactive Quarterly.iso / pc / demos / vvictor / vvdemo.dir / 00619.ls < prev    next >
Encoding:
Text File  |  1996-08-22  |  2.8 KB  |  111 lines

  1. on exitFrame
  2.   global Copies1, SUBTOTAL1, TAX1, TOTAL1, NJ1, shipping1, DOB
  3.   if the text of cast 470 = 1 then
  4.     set SUBTOTAL1 to 1 * "48.99"
  5.   end if
  6.   if the text of cast 470 = 2 then
  7.     set SUBTOTAL1 to 2 * "48.99"
  8.   end if
  9.   if the text of cast 470 = 3 then
  10.     set SUBTOTAL1 to 3 * "48.99"
  11.   end if
  12.   if the text of cast 470 = 4 then
  13.     set SUBTOTAL1 to 4 * "48.99"
  14.   end if
  15.   if the text of cast 470 = 5 then
  16.     set SUBTOTAL1 to 5 * "48.99"
  17.   end if
  18.   if the text of cast 470 = 6 then
  19.     set SUBTOTAL1 to 6 * "48.99"
  20.   end if
  21.   if the text of cast 470 = 7 then
  22.     set SUBTOTAL1 to 7 * "48.99"
  23.   end if
  24.   if the text of cast 470 = 8 then
  25.     set SUBTOTAL1 to 8 * "48.99"
  26.   end if
  27.   if the text of cast 470 = 9 then
  28.     set SUBTOTAL1 to 9 * "48.99"
  29.   end if
  30.   if the text of cast 470 = 10 then
  31.     set SUBTOTAL1 to 10 * "48.99"
  32.   end if
  33.   if the text of cast 470 = 11 then
  34.     set SUBTOTAL1 to 11 * "48.99"
  35.   end if
  36.   if the text of cast 470 = 12 then
  37.     set SUBTOTAL1 to 12 * "48.99"
  38.   end if
  39.   if the text of cast 470 = 13 then
  40.     set SUBTOTAL1 to 13 * "48.99"
  41.   end if
  42.   if the text of cast 470 = 14 then
  43.     set SUBTOTAL1 to 14 * "48.99"
  44.   end if
  45.   if the text of cast 470 = 15 then
  46.     set SUBTOTAL1 to 15 * "48.99"
  47.   end if
  48.   if the text of cast 470 = 16 then
  49.     set SUBTOTAL1 to 16 * "48.99"
  50.   end if
  51.   if the text of cast 470 = 17 then
  52.     set SUBTOTAL1 to 17 * "48.99"
  53.   end if
  54.   if the text of cast 470 = 18 then
  55.     set SUBTOTAL1 to 18 * "48.99"
  56.   end if
  57.   if the text of cast 470 = 19 then
  58.     set SUBTOTAL1 to 19 * "48.99"
  59.   end if
  60.   if the text of cast 470 = 20 then
  61.     set SUBTOTAL1 to 20 * "48.99"
  62.   end if
  63.   if the text of cast 470 = 21 then
  64.     set SUBTOTAL1 to 21 * "48.99"
  65.   end if
  66.   if the text of cast 470 = 22 then
  67.     set SUBTOTAL1 to 22 * "48.99"
  68.   end if
  69.   if the text of cast 470 = 23 then
  70.     set SUBTOTAL1 to 23 * "48.99"
  71.   end if
  72.   if the text of cast 470 = 24 then
  73.     set SUBTOTAL1 to 24 * "48.99"
  74.   end if
  75.   if the text of cast 470 = 25 then
  76.     set SUBTOTAL1 to 25 * "48.99"
  77.   end if
  78.   if the text of cast 470 = 10 then
  79.     set SUBTOTAL1 to 10 * "48.99"
  80.   end if
  81.   put SUBTOTAL1 into field "subtotal"
  82.   if the text of cast 467 = "NJ" then
  83.     set TAX1 to SUBTOTAL1 * 0.06
  84.   else
  85.     if the text of cast 467 = "N.J." then
  86.       set TAX1 to SUBTOTAL1 * 0.06
  87.     else
  88.       if the text of cast 467 = "N J" then
  89.         set TAX1 to SUBTOTAL1 * 0.06
  90.       else
  91.         if the text of cast 467 = "New Jersey" then
  92.           set TAX1 to SUBTOTAL1 * 0.06
  93.         else
  94.           set TAX1 to TAX1 + 0
  95.         end if
  96.       end if
  97.     end if
  98.   end if
  99.   if the text of cast 474 = "5.00" then
  100.     set shipping1 to "5.00"
  101.   end if
  102.   if the text of cast 474 = "5.00" then
  103.     set shipping1 to "5.00"
  104.   end if
  105.   put TAX1 into field "tax"
  106.   if the text of cast 486 > 79 then
  107.     go("dob")
  108.   end if
  109.   go(the frame)
  110. end
  111.